package com.itheima.text6;

import java.util.concurrent.CountDownLatch;

public class Mom extends Thread{
    private CountDownLatch countDownLatch;
    public Mom(CountDownLatch countDownLatch){
        this.countDownLatch = countDownLatch;
    }
    @Override
    public void run() {
        //1.等待
        try {
            countDownLatch.await();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        System.out.println("收拾碗筷");
    }
}
